//所有记录

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class AllRecordScreen extends StatefulWidget {
  const AllRecordScreen({super.key});

  @override
  State<AllRecordScreen> createState() => _AllRecordScreenState();
}

class _AllRecordScreenState extends State<AllRecordScreen> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('所有记录'),
        actions: [
          IconButton(onPressed: (){

          }, icon: Icon(Icons.upload))
        ],
      ),
      body: Padding(
        padding: const EdgeInsets.symmetric(horizontal: 16.0),
        child: SingleChildScrollView(
          child: Column(
            children: [
              Padding(
                padding: const EdgeInsets.only(top: 16.0),
                child: Column(
                  crossAxisAlignment: CrossAxisAlignment.start,
                  children: [
                    Text('今天'),
                    SizedBox(
                      height: 8,
                    ),
                    ListTile(
                      title: Text('1分组前，30分钟，奶瓶'),
                      leading: Container(
                          padding: EdgeInsets.all(8),
                          decoration: BoxDecoration(
                              color: Colors.amber,
                              borderRadius: BorderRadius.circular(32.0)
                          ),
                          child: Icon(Icons.local_drink,color: Colors.black54,)),
                      dense: true,
                      contentPadding: EdgeInsets.zero,
                      trailing: IconButton(onPressed: (){}, icon: Icon(Icons.more_vert,color: Colors.grey,)),
                    ),
                    ListTile(
                      title: Text('1分组前，30分钟，奶瓶'),
                      leading: Container(
                          padding: EdgeInsets.all(8),
                          decoration: BoxDecoration(
                              color: Colors.amber,
                              borderRadius: BorderRadius.circular(32.0)
                          ),
                          child: Icon(Icons.local_drink,color: Colors.black54,)),
                      dense: true,
                      contentPadding: EdgeInsets.zero,
                      trailing: IconButton(onPressed: (){}, icon: Icon(Icons.more_vert,color: Colors.grey,)),
                    ),
                    ListTile(
                      title: Text('1分组前，30分钟，奶瓶'),
                      leading: Container(
                          padding: EdgeInsets.all(8),
                          decoration: BoxDecoration(
                              color: Colors.amber,
                              borderRadius: BorderRadius.circular(32.0)
                          ),
                          child: Icon(Icons.local_drink,color: Colors.black54,)),
                      dense: true,
                      contentPadding: EdgeInsets.zero,
                      trailing: IconButton(onPressed: (){}, icon: Icon(Icons.more_vert,color: Colors.grey,)),
                    ),
                    ListTile(
                      title: Text('1分组前，30分钟，奶瓶'),
                      leading: Container(
                          padding: EdgeInsets.all(8),

                          decoration: BoxDecoration(
                              color: Colors.amber,
                              borderRadius: BorderRadius.circular(32.0)
                          ),
                          child: Icon(Icons.local_drink,color: Colors.black54,)),
                      dense: true,
                      contentPadding: EdgeInsets.zero,
                      trailing: IconButton(onPressed: (){
                      }, icon: Icon(Icons.more_vert,color: Colors.grey,)),
                    )
                  ],
                ),
              ),
              Padding(
                padding: const EdgeInsets.only(top: 16.0),
                child: Column(
                  crossAxisAlignment: CrossAxisAlignment.start,
                  children: [
                    Text('昨天'),
                    SizedBox(
                      height: 8,
                    ),
                    ListTile(
                      title: Text('1分组前，30分钟，奶瓶'),
                      leading: Container(
                          padding: EdgeInsets.all(8),
                          decoration: BoxDecoration(
                              color: Colors.amber,
                              borderRadius: BorderRadius.circular(32.0)
                          ),
                          child: Icon(Icons.local_drink,color: Colors.black54,)),
                      dense: true,
                      contentPadding: EdgeInsets.zero,
                      trailing: IconButton(onPressed: (){}, icon: Icon(Icons.more_vert,color: Colors.grey,)),
                    ),
                    ListTile(
                      title: Text('1分组前，30分钟，奶瓶'),
                      leading: Container(
                          padding: EdgeInsets.all(8),
                          decoration: BoxDecoration(
                              color: Colors.amber,
                              borderRadius: BorderRadius.circular(32.0)
                          ),
                          child: Icon(Icons.local_drink,color: Colors.black54,)),
                      dense: true,
                      contentPadding: EdgeInsets.zero,
                      trailing: IconButton(onPressed: (){}, icon: Icon(Icons.more_vert,color: Colors.grey,)),
                    ),
                    ListTile(
                      title: Text('1分组前，30分钟，奶瓶'),
                      leading: Container(
                          padding: EdgeInsets.all(8),
                          decoration: BoxDecoration(
                              color: Colors.amber,
                              borderRadius: BorderRadius.circular(32.0)
                          ),
                          child: Icon(Icons.local_drink,color: Colors.black54,)),
                      dense: true,
                      contentPadding: EdgeInsets.zero,
                      trailing: IconButton(onPressed: (){}, icon: Icon(Icons.more_vert,color: Colors.grey,)),
                    ),
                    ListTile(
                      title: Text('1分组前，30分钟，奶瓶'),
                      leading: Container(
                          padding: EdgeInsets.all(8),

                          decoration: BoxDecoration(
                              color: Colors.amber,
                              borderRadius: BorderRadius.circular(32.0)
                          ),
                          child: Icon(Icons.local_drink,color: Colors.black54,)),
                      dense: true,
                      contentPadding: EdgeInsets.zero,
                      trailing: IconButton(onPressed: (){
                      }, icon: Icon(Icons.more_vert,color: Colors.grey,)),
                    )
                  ],
                ),
              ),
              Padding(
                padding: const EdgeInsets.only(top: 16.0),
                child: Column(
                  crossAxisAlignment: CrossAxisAlignment.start,
                  children: [
                    Text('5月17日'),
                    SizedBox(
                      height: 8,
                    ),
                    ListTile(
                      title: Text('1分组前，30分钟，奶瓶'),
                      leading: Container(
                          padding: EdgeInsets.all(8),
                          decoration: BoxDecoration(
                              color: Colors.amber,
                              borderRadius: BorderRadius.circular(32.0)
                          ),
                          child: Icon(Icons.local_drink,color: Colors.black54,)),
                      dense: true,
                      contentPadding: EdgeInsets.zero,
                      trailing: IconButton(onPressed: (){}, icon: Icon(Icons.more_vert,color: Colors.grey,)),
                    ),
                    ListTile(
                      title: Text('1分组前，30分钟，奶瓶'),
                      leading: Container(
                          padding: EdgeInsets.all(8),
                          decoration: BoxDecoration(
                              color: Colors.amber,
                              borderRadius: BorderRadius.circular(32.0)
                          ),
                          child: Icon(Icons.local_drink,color: Colors.black54,)),
                      dense: true,
                      contentPadding: EdgeInsets.zero,
                      trailing: IconButton(onPressed: (){}, icon: Icon(Icons.more_vert,color: Colors.grey,)),
                    ),
                    ListTile(
                      title: Text('1分组前，30分钟，奶瓶'),
                      leading: Container(
                          padding: EdgeInsets.all(8),
                          decoration: BoxDecoration(
                              color: Colors.amber,
                              borderRadius: BorderRadius.circular(32.0)
                          ),
                          child: Icon(Icons.local_drink,color: Colors.black54,)),
                      dense: true,
                      contentPadding: EdgeInsets.zero,
                      trailing: IconButton(onPressed: (){}, icon: Icon(Icons.more_vert,color: Colors.grey,)),
                    ),
                    ListTile(
                      title: Text('1分组前，30分钟，奶瓶'),
                      leading: Container(
                          padding: EdgeInsets.all(8),

                          decoration: BoxDecoration(
                              color: Colors.amber,
                              borderRadius: BorderRadius.circular(32.0)
                          ),
                          child: Icon(Icons.local_drink,color: Colors.black54,)),
                      dense: true,
                      contentPadding: EdgeInsets.zero,
                      trailing: IconButton(onPressed: (){
                      }, icon: Icon(Icons.more_vert,color: Colors.grey,)),
                    )
                  ],
                ),
              ),
              Padding(
                padding: const EdgeInsets.only(top: 16.0),
                child: Column(
                  crossAxisAlignment: CrossAxisAlignment.start,
                  children: [
                    Text('5月16日'),
                    SizedBox(
                      height: 8,
                    ),
                    ListTile(
                      title: Text('1分组前，30分钟，奶瓶'),
                      leading: Container(
                          padding: EdgeInsets.all(8),
                          decoration: BoxDecoration(
                              color: Colors.amber,
                              borderRadius: BorderRadius.circular(32.0)
                          ),
                          child: Icon(Icons.local_drink,color: Colors.black54,)),
                      dense: true,
                      contentPadding: EdgeInsets.zero,
                      trailing: IconButton(onPressed: (){}, icon: Icon(Icons.more_vert,color: Colors.grey,)),
                    ),
                    ListTile(
                      title: Text('1分组前，30分钟，奶瓶'),
                      leading: Container(
                          padding: EdgeInsets.all(8),
                          decoration: BoxDecoration(
                              color: Colors.amber,
                              borderRadius: BorderRadius.circular(32.0)
                          ),
                          child: Icon(Icons.local_drink,color: Colors.black54,)),
                      dense: true,
                      contentPadding: EdgeInsets.zero,
                      trailing: IconButton(onPressed: (){}, icon: Icon(Icons.more_vert,color: Colors.grey,)),
                    ),
                    ListTile(
                      title: Text('1分组前，30分钟，奶瓶'),
                      leading: Container(
                          padding: EdgeInsets.all(8),
                          decoration: BoxDecoration(
                              color: Colors.amber,
                              borderRadius: BorderRadius.circular(32.0)
                          ),
                          child: Icon(Icons.local_drink,color: Colors.black54,)),
                      dense: true,
                      contentPadding: EdgeInsets.zero,
                      trailing: IconButton(onPressed: (){}, icon: Icon(Icons.more_vert,color: Colors.grey,)),
                    ),
                    ListTile(
                      title: Text('1分组前，30分钟，奶瓶'),
                      leading: Container(
                          padding: EdgeInsets.all(8),

                          decoration: BoxDecoration(
                              color: Colors.amber,
                              borderRadius: BorderRadius.circular(32.0)
                          ),
                          child: Icon(Icons.local_drink,color: Colors.black54,)),
                      dense: true,
                      contentPadding: EdgeInsets.zero,
                      trailing: IconButton(onPressed: (){
                      }, icon: Icon(Icons.more_vert,color: Colors.grey,)),
                    )
                  ],
                ),
              ),
              SizedBox(
                height: kToolbarHeight,
              )
            ],
          ),
        ),
      ),
    );
  }
}
